How create 3D box rotation in c language